import { axios } from '@/utils/request'

export function getRiskConfigList (params) {
    return axios({
        url: 'risk/config',
        method: 'get',
        params
    })
}

export function deleteRiskConfig (id) {
    return axios({
        url: 'risk/config/' + id,
        method: 'delete'
    })
}

export function editRiskConfig (id, data) {
    return axios({
        url: 'risk/config/' + id,
        method: 'put',
        data
    })
}

export function addRiskConfig (data) {
    return axios({
        url: 'risk/config',
        method: 'post',
        data
    })
}
